home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / pock40.zip / UNARC.BAT < prev    next >
DOS Batch File  |  1994-03-27  |  1KB  |  32 lines

  1.  
  2. echo off
  3. if not "%1"=="" goto ok
  4. cls
  5. echo.
  6. echo UNARC - For uncompressing a set of archives, each to its own subdirectory
  7. echo         off the current directory. Supports ZIP, ARJ, LZH, ZOO, ARC and PAK
  8. echo         (assumes that you have PKZIP etc..)
  9. echo.
  10. echo USAGE: UNARC opt1 opt2 opt3..
  11. echo Where: "optn" are the name of the archive(s) with/without path or option(s)
  12. echo.
  13. echo e.g. UNARC A: B:          "Un-archive all archives on drive A: and B:"
  14. echo      UNARC /W             "Un-archive all archives from current drive"
  15. echo      UNARC \BIN\SRC*      "Un-archive all archives matching \BIN\SRC*"
  16. echo ("\BIN\FRED.ZIP" would be uncompressed into subdir "FRED" etc..)
  17. echo.
  18. goto exit
  19. :ok
  20. cls
  21. echo Unpacking ZIP
  22. d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .zip [md $n//pkunzip $w $n\]R
  23. echo Unpacking ARJ
  24. d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .arj [md $n//arj e $w $n\]R
  25. echo Unpacking LZH 
  26. d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .lzh [md $n//lha x $w $n\]R
  27. echo Unpacking ZOO
  28. d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .zoo [md $n//cd $n//zoo -e $l$r$f//cd ..]R
  29. echo Unpacking ARC and PAK
  30. d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .arc .pak [md $n//pkunpak $w $n\]R
  31. :exit
  32.